// HelloWorld.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "HelloWorld.h"
#include "HelloWorldRealWnd.h"
#include <assert.h>



int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

	WceUiInit(hInstance, L"Wnd", L"Res", L"helloworld.ini");

	CHelloWorldRealWnd* pRealDlg = new CHelloWorldRealWnd;
	assert(NULL != pRealDlg);

	RECT rc = {0};
	::SetRect(&rc, 0, 0, 480, 272);

	pRealDlg->DoModal(WS_POPUP|WS_VISIBLE, rc, NULL);

	delete pRealDlg;
	pRealDlg = NULL;
 
	return 0;
}
